import request from '@/utils/request'

// 获取菜品分类
export function getType() {
    return request({
        url: '/v1/serie/list',
        method: 'post'
    })
}

// 添加菜品
export function AddDish(data) {
    return request({
        url: '/v1/dish/add',
        method: 'post',
        data
    })
}

// 获取菜品列表
export function getList() {
    return request({
        url: '/v1/dish/list',
        method: 'post',
    })
}

// 删除菜品
export function delDish(data) {
    return request({
        url: '/v1/dish/del',
        method: 'post',
        data
    })
}

// 修改台桌
export function updatedDish(data) {
    return request({
        url: '/v1/dish/update',
        method: 'post',
        data
    })
}